package org.nf.shopping.service;


import com.github.pagehelper.PageInfo;
import org.nf.shopping.entity.Role;

import java.util.List;

/**
 * @Author lxy
 * @Date 2024-10-15
 */
public interface RoleService {
    /**
     * 登录验证
     * @param role
     * @return
     */
    Role auth(Role role);

    PageInfo<Role> getRoleListByPage(Integer limit, Integer page, String roleName, String roleType);

    void checkPwd(String pwd,String userName,String newPwd);

    PageInfo<Role> listRole(Integer pageSize, Integer pageNum, String name);

    void updateRole(Role role);

    void deloneRole(Integer id);

    void addRole(Role role);

    List<Role> getRoleList();
}
